<html>
<head><meta charset="utf-8"><title>Synchronizing and fetch code with other repositories · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Synchronizing.20and.20fetch.20code.20with.20other.20repositories.html">Synchronizing and fetch code with other repositories</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="206856165"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Synchronizing%20and%20fetch%20code%20with%20other%20repositories/near/206856165" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mr Smeet <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Synchronizing.20and.20fetch.20code.20with.20other.20repositories.html#206856165">(Aug 13 2020 at 19:03)</a>:</h4>
<p>Some task require fetch code from another repositories, now is implemente by using sparse-checkout, also exist another solutions. One I am implemented today(First). They based on GitHub API. First - download archive for whole project, Second - collect changes by commit and download files that changed. So, what is approach we should use?</p>



<a name="206856763"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Synchronizing%20and%20fetch%20code%20with%20other%20repositories/near/206856763" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mr Smeet <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Synchronizing.20and.20fetch.20code.20with.20other.20repositories.html#206856763">(Aug 13 2020 at 19:09)</a>:</h4>
<p>The first approach is unstable but easy and theoretically portable, the second approach can be integrated in CI, but can download archive only fore whole project</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>